package com.settlement.system.model.entity.common;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.settlement.system.converter.DateTimeFormatConvert;
import com.settlement.system.converter.WpThreeReturnRecordDateFormatConvert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * WP-三退退供单汇总-存档记录表
 * @author xiaochuan
 * @since 2022-08-26
 */
@Data
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 14)
public class TblWpThreeReturnRecord extends BaseModel implements Serializable {

    /**
     * 操作时间
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "操作时间",converter = DateTimeFormatConvert.class)
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date createTime;


    /**
     * 【WP-收退货明细】数据范围
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "【WP-收退货明细】数据范围",converter = WpThreeReturnRecordDateFormatConvert.class)
    @ApiModelProperty(value = "【WP-收退货明细】数据范围")
    private String receiveRefundDate;

    /**
     * 【INT-仓出店店退仓】、【INT-发退货明细】数据范围
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "【INT-仓出店店退仓】、【INT-发退货明细】数据范围",converter = WpThreeReturnRecordDateFormatConvert.class)
    @ApiModelProperty(value = "【INT-仓出店店退仓】、【INT-发退货明细】数据范围")
    private String sendReturnDate;

    /**
     * 【WP-唯品账单明细】账单【其他明细】和【差异明细-导入】数据范围
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "【WP-唯品账单明细】账单【其他明细】和【差异明细-导入】数据范围",converter = WpThreeReturnRecordDateFormatConvert.class)
    @ApiModelProperty(value = "【WP-唯品账单明细】账单【其他明细】和【差异明细-导入】数据范围")
    private String billDate;

    /**
     * 【WP-退供差异单】数据范围
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "【WP-退供差异单】数据范围",converter = WpThreeReturnRecordDateFormatConvert.class)
    @ApiModelProperty(value = "【WP-退供差异单】数据范围")
    private String refundDifDate;
}
